package com.gwl.concurrent.exceptionhandler;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import com.gwl.concurrent.simple.ExceptionThread;

public class SettingDefaultHandler {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Thread.setDefaultUncaughtExceptionHandler(new MyUncaughtExceptionHandler()); 
		ExecutorService exec = Executors.newCachedThreadPool(); 
		exec.execute(new ExceptionThread()); 
	}

}
